package edu.yctc.weblog.service;

import java.util.List;

import edu.yctc.weblog.entity.CategoryDO;
import edu.yctc.weblog.entity.PageDO;
import edu.yctc.weblog.entity.ResultDO;
import edu.yctc.weblog.utils.PageQueryUtil;

public interface CategoryService {

    /**
     * 查询分类列表
     * 
     * @param pageQueryUtil
     * @return
     */
    public ResultDO<PageDO> getCategoryList(PageQueryUtil pageQueryUtil);

    public ResultDO<Void> saveCategory(String name, String icon);

    public ResultDO<Void> updateCategory(Long id, String name, String icon);

    public ResultDO<Void> deleteCategory(Long[] ids);

    public ResultDO<Integer> getTotalCategories();

    public ResultDO<List<CategoryDO>> getAllCategories();
}
